{% extends 'base.html' %}

{% block title %}游戏中心{% endblock %}  <!-- 页面标题 -->

{% block content %}
    <h2 class="center-text">游戏中心</h2>  <!-- 标题居中 -->
    <div class="game-list">
        <!-- 遍历游戏列表 -->
        {% for game in games %}
        <div class="game-item">
            <h3>{{ game.name }}</h3>
            <p><a href="{{ game.url }}" target="_blank" class="game-link">{{ game.url }}</a></p>
        </div>
        {% endfor %}
    </div>
{% endblock %}
